package com.igeek.boot.controller;

import com.igeek.boot.result.Result;
import com.igeek.boot.service.SmsService;
import com.igeek.boot.utils.ValidateCodeUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author fengqq
 * @Description 短信业务
 * @Date 2024/9/5  9:28
 */
@RestController
@RequestMapping("/sms")
@Api(tags = "发送短信业务的控制层")
@Slf4j
public class SmsController {
    @Autowired
    private SmsService smsService;

    //登录时发送短信验证码 message_code
    @ApiOperation("登录时发送短信验证码")
    @PostMapping("/sendLogin")
    public Result sendLogin(String phone){
        Result result = smsService.sendLogin(phone);
        return result;
    }

    //预约成功后发送短信
    //支付后发送短信
    //定时提醒发送短信
}
